package com.love.marriage.userMembershipInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description:  用户会员表类
 * author:       mybatisPlus
 * createDate: 2024-10-17 07:29:59
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_membership_info_t")
@Schema(description = "用户会员表")
public class UserMembershipInfo extends BaseEntity<UserMembershipInfo>{

    @Schema(description = "用户ID", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "会员ID，关联会员配置", type = "Long", implementation = Long.class)
    @TableField("membership_id")
    private Long membershipId;

    @Schema(description = "会员开始时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    @TableField("start_time")
    private LocalDateTime startTime;

    @Schema(description = "会员结束时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    @TableField("end_time")
    private LocalDateTime endTime;

}
